package com.suifeng.mq.common.enums;

public enum Status {

    SUCCESS(200,"ok"),
    NO_STOCK_EXCEPTION(600,"商品库存不足"),;
    /**
     * code
     */
    private final  int code;
    /**
     * message
     */
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private Status(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
